import serve from '@/utils/serve';

/**
 * @description: 登录接口
 */
export function loginApi(data: { username: string; password: string }) {
  return serve.post<{ token: string }>('/api/login', data, {
    headers: {
      fullLoading: false
    }
  });
}

export function testMock() {
  return serve.get('/api/users');
}
